﻿@model List<CC_day_15___Chores.Models.Kitchen>
@{
    ViewBag.Title = "Kitchen";
}



<div>
    <h1><strong>Kitchen Chores</strong></h1>

    @foreach (var index in Model)
    {
        <h3>***@index.ChoreName</h3>
    }
</div>
        
<div>
    <br />
    <h1><strong>The first Kitchen Chore is:</strong></h1>

    @if (Model.Count() > 0)
    {
        var firstItem = Model.FirstOrDefault();
        <h3>@firstItem.ChoreName</h3>
    }

</div>        
    
    
    
